# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file 'visu.ui'
#
# Created: Sun May 30 19:39:59 2010
#	  by: PyQt4 UI code generator 4.7.2
#
# WARNING! All changes made in this file will be lost!

from PyQt4 import QtCore, QtGui
from parsers import  lxml_target

class VisuWidget(QtGui.QDialog):
	 
	def __init__(self, parent =None):
		
		QtGui.QDialog.__init__(self, parent)
		self.setWindowFlags(QtCore.Qt.Window)
		
		self.parent =parent
		
		self.lxml = True
		try:
			from lxml import etree
		except ImportError:
			self.lxml = False
			
		self.setupUi()
		self.initialize()
	
	def setupUi(self):
		
		self.resize(400, 150)
		self.verticalLayout = QtGui.QVBoxLayout(self)
		
		gb = QtGui.QGroupBox("Files options", self)
		vl = QtGui.QVBoxLayout()
		self.pushButton = QtGui.QPushButton("Get Converted Files", self)
		self.pushButton.setMaximumSize(QtCore.QSize(150, 16777215))
		font = QtGui.QFont()
		font.setPointSize(8)
		self.pushButton.setFont(font)
		vl.addWidget(self.pushButton)
		self.label = QtGui.QLabel(self)
		font = QtGui.QFont()
		font.setPointSize(8)
		self.label.setFont(font)
		vl.addWidget(self.label)
		self.lineEdit = QtGui.QLineEdit(self)
		vl.addWidget(self.lineEdit)
		self.button = QtGui.QPushButton("...", self)
		self.button.setMaximumSize(QtCore.QSize(70, 16777215))
		vl.addWidget(self.button)
		gb.setLayout(vl)
		self.verticalLayout.addWidget(gb)
		
		spacerItem3 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
		self.verticalLayout.addItem(spacerItem3)
		
		gb_2 = QtGui.QGroupBox("Input files parameters", self)
		self.gridLayout_2 = QtGui.QGridLayout()
		self.label_2 = QtGui.QLabel(self)
		font = QtGui.QFont()
		font.setPointSize(8)
		self.label_2.setFont(font)
		self.gridLayout_2.addWidget(self.label_2, 0, 0, 1, 1)
		self.lineEdit_2 = QtGui.QLineEdit(self)
		self.lineEdit_2.setMaximumSize(QtCore.QSize(150, 16777215))
		self.gridLayout_2.addWidget(self.lineEdit_2, 0, 1, 1, 1)
		
		#**************test
		self.pushButton_6 =QtGui.QPushButton("Estimation...", self)
		self.gridLayout_2.addWidget(self.pushButton_6, 0, 2, 1, 1)
		#**********************
		
		
		
		self.label_4 = QtGui.QLabel(self)
		font = QtGui.QFont()
		font.setPointSize(8)
		self.label_4.setFont(font)
		self.gridLayout_2.addWidget(self.label_4, 1, 0, 1, 1)
		self.spinBox = QtGui.QSpinBox(self)
		self.spinBox.setMaximumSize(QtCore.QSize(150, 16777215))
		self.gridLayout_2.addWidget(self.spinBox, 1, 1, 1, 1)
		
		self.label_3 = QtGui.QLabel(self)
		font = QtGui.QFont()
		font.setPointSize(8)
		self.label_3.setFont(font)
		self.gridLayout_2.addWidget(self.label_3, 1, 2, 1, 1)
		self.comboBox = QtGui.QComboBox(self)
		font = QtGui.QFont()
		font.setPointSize(8)
		self.comboBox.setFont(font)
		self.gridLayout_2.addWidget(self.comboBox, 1, 3, 1, 1)
		"""
		spacerItem2 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
		self.gridLayout_2.addItem(spacerItem2, 0, 4, 1, 1)
		"""
		self.pushButton_3 = QtGui.QPushButton(self)
		self.pushButton_3.setMaximumSize(QtCore.QSize(70, 30))
		font = QtGui.QFont()
		font.setPointSize(8)
		self.pushButton_3.setFont(font)
		self.gridLayout_2.addWidget(self.pushButton_3, 2, 0, 1, 1)
		gb_2.setLayout(self.gridLayout_2)
		self.verticalLayout.addWidget(gb_2)
		
		#rajout
		gb_3 = QtGui.QGroupBox("Merging Files", self)
		vl_2 = QtGui.QVBoxLayout()
		self.label_5 =QtGui.QLabel(self)
		vl_2.addWidget(self.label_5)
		self.lineEdit_3 = QtGui.QLineEdit(self)
		vl_2.addWidget(self.lineEdit_3)
		
		self.label_6 =QtGui.QLabel( "Name :", self)
		vl_2.addWidget(self.label_6)
		self.lineEdit_4 = QtGui.QLineEdit(self)
		vl_2.addWidget(self.lineEdit_4)
		self.pushButton_4 = QtGui.QPushButton(self)
		self.pushButton_4.setMaximumSize(QtCore.QSize(100, 16777215))
		vl_2.addWidget(self.pushButton_4)
		
		self.pushButton_5 = QtGui.QPushButton(self)
		self.pushButton_5.setMaximumSize(QtCore.QSize(100, 16777215))
		vl_2.addWidget(self.pushButton_5)
		gb_3.setLayout(vl_2)
		self.verticalLayout.addWidget(gb_3)
		
		self.retranslateUi()
		QtCore.QMetaObject.connectSlotsByName(self)
		
		


	def retranslateUi(self):
		self.setWindowTitle(QtGui.QApplication.translate("Form", "Open file...", None, QtGui.QApplication.UnicodeUTF8))
		self.pushButton.setText(QtGui.QApplication.translate("Form", "Get converted File", None, QtGui.QApplication.UnicodeUTF8))
		self.pushButton_5.setText(QtGui.QApplication.translate("Form", "Merge Files", None, QtGui.QApplication.UnicodeUTF8))
		self.label.setText(QtGui.QApplication.translate("Form", "PathFiles : ", None, QtGui.QApplication.UnicodeUTF8))
		self.label_2.setText(QtGui.QApplication.translate("Form", "time of cycle :", None, QtGui.QApplication.UnicodeUTF8))
		self.label_3.setText(QtGui.QApplication.translate("Form", "Scan Type :", None, QtGui.QApplication.UnicodeUTF8))
		self.label_4.setText(QtGui.QApplication.translate("Form", "MS Level :", None, QtGui.QApplication.UnicodeUTF8))
		self.pushButton_3.setText(QtGui.QApplication.translate("Form", "Go", None, QtGui.QApplication.UnicodeUTF8))
		#rajout
		self.pushButton_4.setText(QtGui.QApplication.translate("Form", "Merge files", None, QtGui.QApplication.UnicodeUTF8))
		self.pushButton_4.setText(QtGui.QApplication.translate("Form", "Merge Peaks", None, QtGui.QApplication.UnicodeUTF8))
		self.label_5.setText(QtGui.QApplication.translate("Form", "Merging :", None, QtGui.QApplication.UnicodeUTF8))
		
	def initialize(self):
		l =["MRM", "SRM", "ParanScan"]
		for el in l:
			self.comboBox.addItem(el)
		self.spinBox.setValue(2)
		
if __name__=="__main__":
	import sys
	app = QtGui.QApplication(sys.argv)
	visu =VisuWidget()
	visu.show()
	app.exec_()
